//
//  GoodsDetailModel.h
//  BonweBuy
//
//  Created by liuxin on 2020/2/24.
//  Copyright © 2020 liuxin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class GalleryListModel;
@class SaleAttrListModel;
@class SkuInfoModel;
@class SaleAttr1ListModel;
@class SaleAttr2ListModel;
NS_ASSUME_NONNULL_BEGIN

@interface GoodsDetailModel : NSObject

@property (nonatomic, copy) NSString *productSysCode;
@property (nonatomic, copy) NSString *productName;
@property (nonatomic, copy) NSString *categoryId;
@property (nonatomic, copy) NSArray <GalleryListModel *>*galleryList;/**< 轮播图数据*/
@property (nonatomic, assign) double marketPrice;
@property (nonatomic, copy) NSString *productUrl;
@property (nonatomic, assign) double protectPrice;
@property (nonatomic, strong) SaleAttrListModel *saleAttrList;
@property (nonatomic, assign) double salePrice;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, assign) NSInteger stockNum;
@property (nonatomic, assign) BOOL isChange;
@property (nonatomic, copy) NSString *tagPosition;
@property (nonatomic, copy) NSString *tagName;
@property (nonatomic, copy) NSString *firstCategoryName;
@property (nonatomic, assign) NSInteger commentLevel;
@property (nonatomic, copy) NSArray <SkuInfoModel*>*skuInfo;
@property (nonatomic, copy) NSString *sizePicture;
@property (nonatomic, copy) NSString *isPromotion;
@property (nonatomic, copy) NSArray <NSString*>*categoryNameList;
@end

@interface GalleryListModel : NSObject
@property (nonatomic, copy) NSString *imageUrl;
@property (nonatomic, copy) NSString *allPathImageUrl;
@end

@interface SaleAttrListModel : NSObject
@property (nonatomic, strong) NSMutableArray <SaleAttr1ListModel*>*saleAttr1List;
@property (nonatomic, strong) NSMutableArray <SaleAttr2ListModel*>*saleAttr2List;
@end

@interface SaleAttr1ListModel : NSObject
@property (nonatomic, copy) NSString *imageUrl;
@property (nonatomic, copy) NSString *saleAttr1Key;
@property (nonatomic, copy) NSString *saleAttr1Value;
@property (nonatomic, copy) NSString *saleAttr1ValueCode;
@property (nonatomic, assign) NSInteger stockNum;
@property (nonatomic, copy) NSString *barcodeSysCode;
@end

@interface SaleAttr2ListModel : NSObject
@property (nonatomic, copy) NSString *saleAttr2Key;
@property (nonatomic, copy) NSString *saleAttr2ValueCode;
@property (nonatomic, copy) NSString *saleAttr2Value;
@property (nonatomic, assign) NSInteger stockNum;
@property (nonatomic, copy) NSString *barcodeSysCode;
@property (nonatomic, assign) BOOL isStock; //自加字段用于判断是否有库存
@end

@interface SkuInfoModel : NSObject
@property (nonatomic, copy) NSString *saleAttr2ValueCode;
@property (nonatomic, assign) NSInteger stockNum;
@property (nonatomic, copy) NSString *barcodeSysCode;
@property (nonatomic, copy) NSString *saleAttr1ValueCode;
@end

NS_ASSUME_NONNULL_END
